package com.itlong.cloud.property.service;

import com.itlong.cloud.POJO.DTO.property.PropertyAddBankCardDTO;
import com.itlong.cloud.POJO.DTO.property.PropertyBankManageGetPageDTO;
import com.itlong.cloud.POJO.VO.property.BankCardInfoVO;
import com.itlong.cloud.POJO.VO.property.PropertyBankManageGetPageVO;
import com.itlong.cloud.utils.page.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      物业银行卡管理业务处理接口
 * </desc>
 *
 * @author Jiaqi.X
 * @createDate 2018/09/20
 */
public interface IPropertyBankCardManageService {
    /**
     * <desc>
     *      添加时获取物业银行手机号及支付密码信息
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    Map<String,Object> getBankPayConf(String projectId);


    /**
     * <desc>
     *      验证银行账户唯一性
     * </desc>
     *
     * @param bankCardNo 银行卡号
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    Integer checkBankCardOnly(String bankCardNo,String bankCardId);

    /**
     * <desc>
     *      删除银行卡
     * </desc>
     *
     * @param bankCardId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    Integer deleteBankCard(String bankCardId);


    /**
     * <desc>
     *      获取银行卡账号详情
     * </desc>
     *
     * @param bankCardId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    BankCardInfoVO getBankCardInfo(String bankCardId);

    /**
     * <desc>
     *      查询项目下是否绑定手机号
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    String getProjectBankPhone(String projectId);

    /**
     * <desc>
     *      添加银行卡
     * </desc>
     *
     * @param propertyAddBankCardDTO
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/20
     */
    String addBankCard(PropertyAddBankCardDTO propertyAddBankCardDTO) throws Exception;

    /**
     * <desc>
     *     获取银行卡账户列表
     * </desc>
     *
     * @param pageDTO   参数DTO
     * @return
     * @author Jiaqi.X
     * @createDate 2018/08/15
     */
    Page<PropertyBankManageGetPageVO> getPage(PropertyBankManageGetPageDTO pageDTO) throws Exception;

    /**
     * <desc>
     *      获取银行名称
     * </desc>
     *
     * @param bankName
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/27
     */
    List<Map<String,Object>> getBanks(String bankName);

    /**
     * <desc>
     *      获取物业银行卡列表
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/27
     */
    List<Map<String,Object>> getBankCards(String projectId);
}
